{"version":3,"file":"static/chunks/pages/travel-destination/[destination_slug]/[details_slug]-63c07849318a3b03.js","mappings":"4LAiDA,EA/CyB,SAAC,GAAkB,IAAhBA,EAAgB,EAAhBA,UAC1B,OACE,gBACEC,MAAM,6BACNC,WAAW,+BACXC,QAAQ,MACRC,MAAM,MACNC,OAAO,MACPC,QAAQ,cACRC,SAAS,WACTP,UAAWA,EARb,UAUE,eACEQ,MAAO,CACLC,OAAQ,OACRC,YAAa,EACbC,gBAAiB,OACjBC,cAAe,OACfC,eAAgB,QAChBC,iBAAkB,GAClBC,KAAM,OACNC,SAAU,UACVC,QAAS,GAEXC,UAAU,oEAZZ,WAcE,iBACEC,EAAE,whBACFX,MAAO,CAAEO,KAAM,cAEjB,iBACEI,EAAE,4RACFX,MAAO,CAAEO,KAAM,cAEjB,iBACEI,EAAE,qcACFX,MAAO,CAAEO,KAAM,cAEjB,iBACEI,EAAE,8PACFX,MAAO,CAAEO,KAAM,oBAKxB,E,UCDD,EA1CY,SAAC,GAAqB,IAAnBK,EAAmB,EAAnBA,OAAQC,EAAW,EAAXA,KACbC,ECSN,wIDPF,GAAoCC,EAAAA,EAAAA,WAAS,GAAtCC,EAAP,KAAmBC,EAAnB,KAWA,OACE,iBAAKzB,UAAU,OAAf,WACE,mBACE0B,QAAS,kBAAMD,GAAc,EAApB,EACTzB,UAAS,UAAKsB,EAAL,8EAFX,SAIGE,EAAaJ,GAAU,KAAO,gBAGhCC,GACC,SAAC,IAAD,CACErB,UAAS,UAAKsB,EAAL,0FACTK,KAAMN,EACNO,OAAO,SAHT,2BAQA,iBACE5B,UAAS,UAAKsB,EAAL,0GADX,0BAQP,EEqCD,EA3EqB,SAAC,GAA6B,IAA3BO,EAA2B,EAA3BA,UAAWC,EAAgB,EAAhBA,UAcjC,OACE,8BACGC,MAAMC,QAAQH,KACfA,aAAA,EAAAA,EAAWI,QAAO,SAACC,GAAD,QAAYC,EAAAA,EAAAA,IAAcD,aAAD,EAACA,EAAOE,UAAjC,IAA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AsBQ,YACrB,iBAAMjF,KAAK,WAAWC,QAASuE,SAAF,UAAEA,EAAiBC,WAAnB,aAAE,EAAsBQ,eAGzD,SAACb,EAAD,CAAoBc,KAAMV,KAC1B,SAAC,UAAD,CACEW,UAAS,UAAEX,EAAgB,UAAlB,aAAE,EAAoBW,UAC/BC,SAAQ,UAAEZ,EAAgB,UAAlB,aAAE,EAAoBa,iBAC9B5H,UAAW+G,aAAF,EAAEA,EAAiBc,0BAInC,C,mHC7DM,SAASC,EAAQC,GACtB,IAAID,GAAU,EACRlF,SAAcmF,EAQpB,OAFAD,GADAA,GADAA,GADAA,GADAA,GADAA,EAAUA,IAAYC,IACQ,cAATnF,IACQ,OAARmF,IACU,WAATnF,GAA6B,KAARmF,KACd,IAARA,GAAyB,IAARA,IAChB9H,MAAMC,QAAQ6H,IAAuB,IAAfA,EAAIxH,SACjB,WAATqC,GAAiD,IAA5B9B,OAAO2C,KAAKsE,GAAKxH,MAE7D,CAWM,SAASF,EAAc2H,GAI5B,OAHqBC,IAAOD,EAAY,cAClBC,OAEf,CACR,C,+BC7BIC,OAAOC,SAAWD,OAAOC,UAAY,IAAI7F,KAAK,CAC7C,wDACA,WACE,OAAO,EAAQ,KACjB,G,uBCLNoD,EAAO1E,QAAU,EAAjB,K","sources":["webpack://_N_E/./public/svg/hotel-placeholder.js","webpack://_N_E/./components/hotelListing/cta.js","webpack://_N_E/./components/hotelListing/tailwindClasses.js","webpack://_N_E/./components/hotelListing/index.js","webpack://_N_E/./node_modules/next/dist/shared/lib/amp-context.js","webpack://_N_E/./node_modules/next/dist/shared/lib/amp-mode.js","webpack://_N_E/./node_modules/next/dist/shared/lib/head.js","webpack://_N_E/./node_modules/next/dist/shared/lib/side-effect.js","webpack://_N_E/./node_modules/next/dist/shared/lib/utils/warn-once.js","webpack://_N_E/./pages/travel-destination/[destination_slug]/[details_slug]/index.js","webpack://_N_E/./utils/common.js","webpack://_N_E/?aa32","webpack://_N_E/./node_modules/next/head.js"],"sourcesContent":["import React from \"react\";\n\nconst HotelPlaceholder = ({ className }) => {\n return (\n \n \n \n \n \n \n \n \n );\n};\n\nexport default HotelPlaceholder;\n","import Link from \"next/link\";\nimport React, { useState } from \"react\";\nimport { tailwindClasses } from \"./tailwindClasses\";\n\nconst Cta = ({ mobile, link }) => {\n const { buttons } = tailwindClasses;\n // const router = useRouter();\n const [showNumber, setShowNumber] = useState(false);\n\n // const redirectPage = useCallback(\n // (link) => {\n // if (link) {\n // router.push(link);\n // }\n // },\n // [router]\n // );\n\n return (\n
\n setShowNumber(true)}\n className={`${buttons} hover:bg-[#384148] hover:text-[#e0f3fd] border-r border-r-1 border-[#fff]`}\n >\n {showNumber ? mobile || \"NA\" : \"Show Number\"}\n \n {/* */}\n {link ? (\n \n Show Details\n \n ) : (\n \n No Details\n \n )}\n
\n );\n};\n\nexport default Cta;\n","export const tailwindClasses = {\n mainWrap: \"main-wrapper pb-[38px] lg:pb-[48px]\",\n headingWrap: \"border-l-4 pl-[8px] bold-italic mb-[26px]\",\n // hotelListCls: 'row md:flex-row flex-col mt-[30px]',\n // hotelWrap: \"col-4 mb-[30px] sm:w-full\",\n subHotelWrap: \"bg-white rounded-lg shadow-lg w-[100%] relative\",\n imgWrap: \"overflow-hidden rounded-t-lg w-full h-[245px] bg-[#f0efef]\",\n imgClass:\n \"w-full h-full object-cover transition-transform duration-300 ease-in-out hover:scale-110\",\n titleWrap: \" w-full bottom-0 bg-whiterounded-b-lg\",\n heading:\n \"capitalize font-bold mb-2 text-2xl text-[#58A4AE] border-l-0 whitespace-break-spaces\",\n // linkCls: \"font-semibold cursor-pointer hover:text-[#58A4AE]\",\n buttons:\n \"w-[50%] uppercase font-bold text-[14px] p-[5px] bg-[#58a4ae] text-[#fff] cursor-pointer transition-transform duration-300 ease-in-out\",\n};\n","import Link from \"next/link\";\nimport HotelPlaceholder from \"../../public/svg/hotel-placeholder\";\nimport { isDateExpired } from \"../../utils/common\";\nimport Cta from \"./cta\";\nimport { tailwindClasses } from \"./tailwindClasses\";\n\nconst HotelListing = ({ hotelList, placeName }) => {\n const {\n heading,\n headingWrap,\n // hotelWrap,\n imgClass,\n imgWrap,\n mainWrap,\n subHotelWrap,\n titleWrap,\n // linkCls,\n // buttons\n } = tailwindClasses;\n\n return (\n <>\n {Array.isArray(hotelList) &&\n hotelList?.filter((hotel) => !isDateExpired(hotel?.expiry_on)).length >\n 0 ? (\n
\n

\n Discover your perfect stay: Hotels just for you, with direct deals\n

\n \n {hotelList.map((hotel, i) => (\n
\n {!isDateExpired(hotel?.expiry_on) && (\n redirectPage(hotel?.link)}\n >\n
\n {hotel?.card_bg ? (\n \n ) : (\n \n )}\n
\n
\n
\n

{hotel?.hotel}

\n {/*

{hotel?.heading}

*/}\n

{hotel?.location}

\n
\n \n
\n
\n )}\n
\n ))}\n \n \n ) : (\n
\n No hotels are currently listed with us in this page of {placeName}. Be\n the first to join us by listing your hotel today!.\n \n
\n Click here to contact us\n
\n \n
\n )}\n \n );\n};\n\nexport default HotelListing;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.AmpStateContext = void 0;\nvar _interop_require_default = require(\"@swc/helpers/lib/_interop_require_default.js\").default;\nvar _react = _interop_require_default(require(\"react\"));\nconst AmpStateContext = _react.default.createContext({});\nexports.AmpStateContext = AmpStateContext;\nif (process.env.NODE_ENV !== 'production') {\n AmpStateContext.displayName = 'AmpStateContext';\n}\n\n//# sourceMappingURL=amp-context.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isInAmpMode = isInAmpMode;\nfunction isInAmpMode({ ampFirst =false , hybrid =false , hasQuery =false , } = {}) {\n return ampFirst || hybrid && hasQuery;\n}\n\n//# sourceMappingURL=amp-mode.js.map","\"use client\";\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.defaultHead = defaultHead;\nexports.default = void 0;\nvar _extends = require(\"@swc/helpers/lib/_extends.js\").default;\nvar _interop_require_default = require(\"@swc/helpers/lib/_interop_require_default.js\").default;\nvar _interop_require_wildcard = require(\"@swc/helpers/lib/_interop_require_wildcard.js\").default;\nvar _react = _interop_require_wildcard(require(\"react\"));\nvar _sideEffect = _interop_require_default(require(\"./side-effect\"));\nvar _ampContext = require(\"./amp-context\");\nvar _headManagerContext = require(\"./head-manager-context\");\nvar _ampMode = require(\"./amp-mode\");\nvar _warnOnce = require(\"./utils/warn-once\");\n'use client';\nfunction defaultHead(inAmpMode = false) {\n const head = [\n /*#__PURE__*/ _react.default.createElement(\"meta\", {\n charSet: \"utf-8\"\n })\n ];\n if (!inAmpMode) {\n head.push(/*#__PURE__*/ _react.default.createElement(\"meta\", {\n name: \"viewport\",\n content: \"width=device-width\"\n }));\n }\n return head;\n}\nfunction onlyReactElement(list, child) {\n // React children can be \"string\" or \"number\" in this case we ignore them for backwards compat\n if (typeof child === 'string' || typeof child === 'number') {\n return list;\n }\n // Adds support for React.Fragment\n if (child.type === _react.default.Fragment) {\n return list.concat(_react.default.Children.toArray(child.props.children).reduce((fragmentList, fragmentChild)=>{\n if (typeof fragmentChild === 'string' || typeof fragmentChild === 'number') {\n return fragmentList;\n }\n return fragmentList.concat(fragmentChild);\n }, []));\n }\n return list.concat(child);\n}\nconst METATYPES = [\n 'name',\n 'httpEquiv',\n 'charSet',\n 'itemProp'\n];\n/*\n returns a function for filtering head child elements\n which shouldn't be duplicated, like \n Also adds support for deduplicated `key` properties\n*/ function unique() {\n const keys = new Set();\n const tags = new Set();\n const metaTypes = new Set();\n const metaCategories = {};\n return (h)=>{\n let isUnique = true;\n let hasKey = false;\n if (h.key && typeof h.key !== 'number' && h.key.indexOf('$') > 0) {\n hasKey = true;\n const key = h.key.slice(h.key.indexOf('$') + 1);\n if (keys.has(key)) {\n isUnique = false;\n } else {\n keys.add(key);\n }\n }\n // eslint-disable-next-line default-case\n switch(h.type){\n case 'title':\n case 'base':\n if (tags.has(h.type)) {\n isUnique = false;\n } else {\n tags.add(h.type);\n }\n break;\n case 'meta':\n for(let i = 0, len = METATYPES.length; i < len; i++){\n const metatype = METATYPES[i];\n if (!h.props.hasOwnProperty(metatype)) continue;\n if (metatype === 'charSet') {\n if (metaTypes.has(metatype)) {\n isUnique = false;\n } else {\n metaTypes.add(metatype);\n }\n } else {\n const category = h.props[metatype];\n const categories = metaCategories[metatype] || new Set();\n if ((metatype !== 'name' || !hasKey) && categories.has(category)) {\n isUnique = false;\n } else {\n categories.add(category);\n metaCategories[metatype] = categories;\n }\n }\n }\n break;\n }\n return isUnique;\n };\n}\n/**\n *\n * @param headChildrenElements List of children of <Head>\n */ function reduceComponents(headChildrenElements, props) {\n const { inAmpMode } = props;\n return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead(inAmpMode).reverse()).filter(unique()).reverse().map((c, i)=>{\n const key = c.key || i;\n if (process.env.NODE_ENV !== 'development' && process.env.__NEXT_OPTIMIZE_FONTS && !inAmpMode) {\n if (c.type === 'link' && c.props['href'] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.\n [\n 'https://fonts.googleapis.com/css',\n 'https://use.typekit.net/'\n ].some((url)=>c.props['href'].startsWith(url))) {\n const newProps = _extends({}, c.props || {});\n newProps['data-href'] = newProps['href'];\n newProps['href'] = undefined;\n // Add this attribute to make it easy to identify optimized tags\n newProps['data-optimized-fonts'] = true;\n return /*#__PURE__*/ _react.default.cloneElement(c, newProps);\n }\n }\n if (process.env.NODE_ENV === 'development') {\n // omit JSON-LD structured data snippets from the warning\n if (c.type === 'script' && c.props['type'] !== 'application/ld+json') {\n const srcMessage = c.props['src'] ? `<script> tag with src=\"${c.props['src']}\"` : `inline <script>`;\n (0, _warnOnce).warnOnce(`Do not add <script> tags using next/head (see ${srcMessage}). Use next/script instead. \\nSee more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`);\n } else if (c.type === 'link' && c.props['rel'] === 'stylesheet') {\n (0, _warnOnce).warnOnce(`Do not add stylesheets using next/head (see <link rel=\"stylesheet\"> tag with href=\"${c.props['href']}\"). Use Document instead. \\nSee more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);\n }\n }\n return /*#__PURE__*/ _react.default.cloneElement(c, {\n key\n });\n });\n}\n/**\n * This component injects elements to `<head>` of your page.\n * To avoid duplicated `tags` in `<head>` you can use the `key` property, which will make sure every tag is only rendered once.\n */ function Head({ children }) {\n const ampState = (0, _react).useContext(_ampContext.AmpStateContext);\n const headManager = (0, _react).useContext(_headManagerContext.HeadManagerContext);\n return /*#__PURE__*/ _react.default.createElement(_sideEffect.default, {\n reduceComponentsToState: reduceComponents,\n headManager: headManager,\n inAmpMode: (0, _ampMode).isInAmpMode(ampState)\n }, children);\n}\nvar _default = Head;\nexports.default = _default;\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=head.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = SideEffect;\nvar _interop_require_wildcard = require(\"@swc/helpers/lib/_interop_require_wildcard.js\").default;\nvar _react = _interop_require_wildcard(require(\"react\"));\nfunction SideEffect(props) {\n const { headManager , reduceComponentsToState } = props;\n function emitChange() {\n if (headManager && headManager.mountedInstances) {\n const headElements = _react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));\n headManager.updateHead(reduceComponentsToState(headElements, props));\n }\n }\n if (isServer) {\n var ref;\n headManager == null ? void 0 : (ref = headManager.mountedInstances) == null ? void 0 : ref.add(props.children);\n emitChange();\n }\n useClientOnlyLayoutEffect(()=>{\n var ref1;\n headManager == null ? void 0 : (ref1 = headManager.mountedInstances) == null ? void 0 : ref1.add(props.children);\n return ()=>{\n var ref;\n headManager == null ? void 0 : (ref = headManager.mountedInstances) == null ? void 0 : ref.delete(props.children);\n };\n });\n // We need to call `updateHead` method whenever the `SideEffect` is trigger in all\n // life-cycles: mount, update, unmount. However, if there are multiple `SideEffect`s\n // being rendered, we only trigger the method from the last one.\n // This is ensured by keeping the last unflushed `updateHead` in the `_pendingUpdate`\n // singleton in the layout effect pass, and actually trigger it in the effect pass.\n useClientOnlyLayoutEffect(()=>{\n if (headManager) {\n headManager._pendingUpdate = emitChange;\n }\n return ()=>{\n if (headManager) {\n headManager._pendingUpdate = emitChange;\n }\n };\n });\n useClientOnlyEffect(()=>{\n if (headManager && headManager._pendingUpdate) {\n headManager._pendingUpdate();\n headManager._pendingUpdate = null;\n }\n return ()=>{\n if (headManager && headManager._pendingUpdate) {\n headManager._pendingUpdate();\n headManager._pendingUpdate = null;\n }\n };\n });\n return null;\n}\nconst isServer = typeof window === 'undefined';\nconst useClientOnlyLayoutEffect = isServer ? ()=>{} : _react.useLayoutEffect;\nconst useClientOnlyEffect = isServer ? ()=>{} : _react.useEffect;\n\n//# sourceMappingURL=side-effect.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.warnOnce = void 0;\nlet warnOnce = (_)=>{};\nif (process.env.NODE_ENV !== 'production') {\n const warnings = new Set();\n exports.warnOnce = warnOnce = (msg)=>{\n if (!warnings.has(msg)) {\n console.warn(msg);\n }\n warnings.add(msg);\n };\n}\nexports.warnOnce = warnOnce;\n\n//# sourceMappingURL=warn-once.js.map","import dynamic from \"next/dynamic\";\nimport Head from \"next/head\";\nimport React from \"react\";\nimport HotelListing from \"../../../../components/hotelListing\";\nimport { fetchDestination } from \"../../../../utils/api\";\n\nconst DestinationDetails = dynamic(\n () => import(\"../../../../components/destination-details\"),\n {\n ssr: true,\n }\n);\n\nexport default function Index(props) {\n const { destinationData } = props;\n return (\n <>\n <Head>\n {/* {placesTypeDetails?.[0]?.title && (\n <title>{placesTypeDetails?.[0]?.title}\n )} */}\n\n {/* Meta Tags */}\n {destinationData?.seo?.description && (\n \n )}\n\n {/* Open Graph Tags */}\n {destinationData?.seo?.og_title && (\n \n )}\n {destinationData?.seo?.og_image && (\n \n )}\n\n {destinationData?.seo?.og_description && (\n \n )}\n {/* */}\n \n\n {/* Canonical Tag */}\n \n {destinationData?.seo?.keywords && (\n \n )}\n \n \n \n \n );\n}\n\nexport async function getServerSideProps(props) {\n const { query, req } = props;\n const isServer = req ? true : false;\n const platform = isServer ? \"server\" : \"client\";\n const destinationData = await fetchDestination(\n platform,\n query.destination_slug,\n query.details_slug\n );\n return {\n props: {\n destinationData,\n },\n };\n}\n","import moment from \"moment\";\nimport { FcApproval } from \"react-icons/fc\";\n\nexport function isEmpty(obj) {\n let isEmpty = false;\n const type = typeof obj;\n isEmpty = isEmpty || !obj;\n isEmpty = isEmpty || type === \"undefined\"; // if it is undefined\n isEmpty = isEmpty || obj === null; // if it is null\n isEmpty = isEmpty || (type === \"string\" && obj === \"\"); // if the string is empty\n isEmpty = isEmpty || obj === false || obj === 0; // if boolean value returns false\n isEmpty = isEmpty || (Array.isArray(obj) && obj.length === 0); // if array is empty\n isEmpty = isEmpty || (type === \"object\" && Object.keys(obj).length === 0); // if object is empty\n return isEmpty;\n}\n\nexport const checkDevice = (req) => {\n const userAgent = req ? req.headers[\"user-agent\"] : navigator.userAgent;\n return Boolean(\n userAgent.match(\n /Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i\n )\n );\n};\n\nexport function isDateExpired(expiryDate) {\n const expiryMoment = moment(expiryDate, \"DD/MM/YYYY\");\n const currentMoment = moment();\n // return currentMoment.isAfter(expiryMoment, \"day\");\n return false;\n}\n\nexport const getColor = (_name) => {\n const name = _name.toUpperCase();\n\n // If '|' is found, split the text and return an anchor tag\n if (name.includes(\"|\")) {\n const [text, link] = name.split(\"|\");\n return (\n \n {text.toLowerCase()}\n \n );\n }\n\n switch (name) {\n case \"JANUARY\":\n case \"FEBRUARY\":\n case \"MARCH\":\n case \"APRIL\":\n case \"MAY\":\n case \"JUNE\":\n case \"JULY\":\n case \"AUGUST\":\n case \"SEPTEMBER\":\n case \"OCTOBER\":\n case \"NOVEMBER\":\n case \"DECEMBER\":\n return (\n
\n  {name}\n
\n );\n default:\n return name.toLowerCase();\n }\n};\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/travel-destination/[destination_slug]/[details_slug]\",\n function () {\n return require(\"private-next-pages/travel-destination/[destination_slug]/[details_slug]/index.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/travel-destination/[destination_slug]/[details_slug]\"])\n });\n }\n ","module.exports = require('./dist/shared/lib/head')\n"],"names":["className","xmlns","xmlnsXlink","version","width","height","viewBox","xmlSpace","style","stroke","strokeWidth","strokeDasharray","strokeLinecap","strokeLinejoin","strokeMiterlimit","fill","fillRule","opacity","transform","d","mobile","link","buttons","useState","showNumber","setShowNumber","onClick","href","target","hotelList","placeName","Array","isArray","filter","hotel","isDateExpired","expiry_on","length","map","i","card_bg","src","alt","location","Object","defineProperty","exports","value","AmpStateContext","_interop_require_default","require","createContext","isInAmpMode","ampFirst","hybrid","hasQuery","defaultHead","_extends","_react","_interop_require_wildcard","_sideEffect","_ampContext","_headManagerContext","_ampMode","inAmpMode","head","createElement","charSet","push","name","content","onlyReactElement","list","child","type","Fragment","concat","Children","toArray","props","children","reduce","fragmentList","fragmentChild","METATYPES","reduceComponents","headChildrenElements","keys","tags","metaTypes","metaCategories","reverse","Set","h","isUnique","hasKey","key","indexOf","slice","has","add","len","metatype","hasOwnProperty","category","categories","c","some","url","startsWith","newProps","undefined","cloneElement","ampState","useContext","headManager","HeadManagerContext","reduceComponentsToState","__esModule","assign","module","ref","emitChange","mountedInstances","headElements","from","Boolean","updateHead","isServer","useClientOnlyLayoutEffect","ref1","_pendingUpdate","useClientOnlyEffect","useLayoutEffect","useEffect","warnOnce","_","DestinationDetails","dynamic","ssr","Index","destinationData","seo","description","og_title","property","og_image","og_description","rel","canonical_tag","keywords","data","stateSlug","citySlug","destination_slug","destination_city_name","isEmpty","obj","expiryDate","moment","window","__NEXT_P"],"sourceRoot":""}